package me.goldze.mvvmhabit.http;

public class NoDataException extends RuntimeException{
    private int code=100000;
    private String errorInfo;
    public NoDataException( int code) {
        this.code = code;
        this.errorInfo ="查无此数据";
    }
    public NoDataException(int code ,String message){
        this.code =code;
        this.errorInfo = message;
    }

    public String getErrorInfo() {
        return errorInfo;
    }
}
